package com.pankai.cn.service;

import com.pankai.cn.entity.Role;
import com.pankai.cn.entity.User;

import java.util.List;

/**
 * @author pankai
 * @create 2020-11-30 16:46
 */
public interface UserService {
    /**
     * 用户注册
     * @param user
     */
    void register(User user);

    /**
     * 通过用户名找用户
     * @param userName
     * @return
     */
    User findUserByUserName(String userName);

    User findRolesByUserName(String userName);
}
